package com.lysj.admin.master.bussiness.company.invoice.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lysj.admin.master.bussiness.company.CompanyEntity;
import com.lysj.admin.master.common.spring.mpbase.MyEntity;
import com.lysj.admin.master.common.validation.annotation.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @author Created by drj on 2020-01-08 14:49
 * @description 开票信息
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("lysj_company_invoice_info")
@Table(name = "lysj_company_invoice_info",
        indexes = {@Index(name = "idx_company_id", columnList = "companyId")})
public class InvoiceInfo extends CompanyEntity {

    @NotBlank(message = "请输入企业名称")
    private String enterprise;//企业名称
    @NotBlank(message = "请输入纳税人识别号")
    private String taxNumber;//纳税人识别号
    @NotBlank(message = "请输入地址")
    private String address;//地址
    @NotBlank(message = "请输入手机号")
    private String phone;//手机号
    @NotBlank(message = "请输入开户行")
    private String bank;//开户行
    @NotBlank(message = "请输入账号")
    private String account;//账号
    private String goodsName;//货物名称(应税劳务) 用-拼接,比如(货物1-货物2)

}
